import https from '@/plugins/luch-request_0.0.7/request'

export const getSelectStaff = data => https.get('/apihkds/api/user/relation/selectStaff', data)

export const getStaffList = data => https.get('/apihkds/api/user/relation/list', data)

export const delDepartment = data => https.get('/apihkds/api/department/delete', data)

export const addStaff = data => https.post('/apihkds/api/user/relation/create', data)

export const moveStaff = data => https.get('/apihkds/api/user/relation/moves', data)

export const delStaff = data => https.get('/apihkds/api/user/relation/deletes', data)

export const addDepartment = data => https.post('/apihkds/api/department/handle', data)

export const editDepartment = data => https.post('/apihkds/api/department/update', data)

export const selDepartment = data => https.get('/apihkds/api/user/relation/selectDepartment', data)

export const departmentDetail = data => https.get('/apihkds/api/department/info', data)

export const getJobList = data => https.get('/apihkds/api/user/auth/getRoleList', data)

export const editStaff = data => https.post('/apihkds/api/user/relation/edit', data)

export const getStaffDetail = data => https.get('/apihkds/api/user/relation/info', data)

export const transferStaffList = data => https.post('/apihkds/api/user/relation/getList', data)

export const transferMenber = data => https.post('/apihkds/api/user/relation/dataHandOver', data)
// 员工排行
export const relationUserSort = data => https.get('/apihkds/api/user/relation/userSort', data)

export const postLeaveStatus = data => https.post('/apihkds/api/user/relation/leaveCheck', data)

export const getUserDetail = data => https.post('/apihkds/api/user/relation/userDetail', data)
